package demo.demo04;
//引用数据类型的特点___即数组可以存放数据
public class ArraySave {
    public static void main(String[] args) {
        int[] array = {1, 2, 3};
        System.out.println(array[0]);
        System.out.println(array[1]);
        System.out.println(array[2]);
        System.out.println("---------------");
        change(array);
        System.out.println(array[0]);
        System.out.println(array[1]);
        System.out.println(array[2]);
    }

    public static void change(int[] arr) {
        arr[0] *= 10;
        arr[1] *= 10;
        arr[2] *= 10;
    }
}